package com.zaoke.web.dao.order;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.zaoke.web.bo.order.Order;
import com.zaoke.web.bo.order.OrderFood;

public interface OrderDao {

	public List<Order> getOrderByQuery(Order order, Date dateF, Date dateT);

	public Map<Long, List<OrderFood>> getOrderFoodByOrderIds(Set<Long> orderids);

	public List<Order> getActiveOrdersByZoneId(long zoneId);

	public Order getOrderById(long orderid);
	
	public boolean updateOrderState(int state, Order order);

	public void updateOrderStates();

	public long genTodayId(String date, long zoneId);

	public Map<Date, List<Order>> getUpOrderByQuery(Order order, Date dateF, Date dateT);
	
	public boolean addOrders(final List<Order> orders);
	
	public boolean addFoods(final List<OrderFood> foods);
}
